package com.gollum.jpa.common;


import java.io.Serializable;

/**
 * JPA查询参数定义
 *
 * @author Herther
 * @version 1.0.0
 * @ClassName SuperQueryParams.java
 * @createTime 2022年07月17日 14:17:00
 */
public class SuperQueryParams implements Serializable {

    private final long SerialVersionUID = 1L;

    /** 查询规则 rule **/
    private String rule;

    /** 查询字段的类型 **/
    private String type;

    /** 查询字段的值 **/
    private Object val;

    /** 查询的字段的名称 **/
    private String field;


    public String getRule() {
        return rule;
    }

    public SuperQueryParams setRule(String rule) {
        this.rule = rule;
        return this;
    }

    public String getType() {
        return type;
    }

    public SuperQueryParams setType(String type) {
        this.type = type;
        return this;
    }

    public Object getVal() {
        return val;
    }

    public SuperQueryParams setVal(Object val) {
        this.val = val;
        return this;
    }

    public String getField() {
        return field;
    }

    public SuperQueryParams setField(String field) {
        this.field = field;
        return this;
    }

    @Override
    public String toString() {
        return "SuperQueryParams{" +
                "SerialVersionUID=" + SerialVersionUID +
                ", rule='" + rule + '\'' +
                ", type='" + type + '\'' +
                ", val='" + val + '\'' +
                ", field='" + field + '\'' +
                '}';
    }

}
